//
//  SuggestionsBoxTableViewCell.m
//  QuickCure
//
//  Created by 马太行 on 16/9/12.
//  Copyright © 2016年 haoge. All rights reserved.
//

#import "SuggestionsBoxTableViewCell.h"

@implementation SuggestionsBoxTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype) initWithsuggestinonsBox:(NSIndexPath *)indexPath
{

    self = [super init];
    
    switch (indexPath.row) {
        case 0:
        {
            //图片
            UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 13, 25, 25)];
            imageView.image = [UIImage imageNamed:@"dianhua"];
            [self.contentView addSubview:imageView];
            
            //文字
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 17, 250, 20)];
            label.text = @"客服电话:400-636-6113";
            [self.contentView addSubview:label];
            
            //样式
            [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
            
        }
            break;
        case 1:
        {
            //文字
            UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 13, 25, 25)];
            imageView.image = [UIImage imageNamed:@"qq"];
            [self.contentView addSubview:imageView];
            
            //文字
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 17, 250, 20)];
            label.text = @"用户交流群: QQ 972388597";
            [self.contentView addSubview:label];
        
            //样式
            [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
            
        }
            
        default:
            break;
    }
    return  self;

}
@end
